From b2befbbe1fcabec0a74bababed75faf049f1b2f0 Mon Sep 17 00:00:00 2001 From: Peter Michael Green Date: Sun, 31 May 2026 21:34:28 +0000 Subject: [PATCH] Link with libatomic. Gbp-Pq: Name link-with-libatomic.patch --- bitmap2component/CMakeLists.txt | 1 + eeschema/CMakeLists.txt | 1 + kicad/CMakeLists.txt | 1 + qa/tests/eeschema/CMakeLists.txt | 1 + qa/tests/gerbview/CMakeLists.txt | 1 + qa/tests/pcbnew/CMakeLists.txt | 1 + qa/tests/spice/CMakeLists.txt | 1 + qa/tools/pcbnew_tools/CMakeLists.txt | 1 + 8 files changed, 8 insertions(+) diff --git a/bitmap2component/CMakeLists.txt b/bitmap2component/CMakeLists.txt index 40d927dfd..99446cf9f 100644 --- a/bitmap2component/CMakeLists.txt +++ b/bitmap2component/CMakeLists.txt @@ -55,6 +55,7 @@ target_link_libraries( bitmap2component kicommon ${wxWidgets_LIBRARIES} potrace + atomic ) if( APPLE ) diff --git a/eeschema/CMakeLists.txt b/eeschema/CMakeLists.txt index 3f687a6b5..114f45382 100644 --- a/eeschema/CMakeLists.txt +++ b/eeschema/CMakeLists.txt @@ -588,6 +588,7 @@ target_link_libraries( eeschema kicommon pcm ${wxWidgets_LIBRARIES} + -latomic ) # the main Eeschema program, in DSO form. diff --git a/kicad/CMakeLists.txt b/kicad/CMakeLists.txt index dae7b75fe..8767e7e6c 100644 --- a/kicad/CMakeLists.txt +++ b/kicad/CMakeLists.txt @@ -183,6 +183,7 @@ else() kicommon core ${wxWidgets_LIBRARIES} + -latomic ) target_link_libraries( kicad-cli diff --git a/qa/tests/eeschema/CMakeLists.txt b/qa/tests/eeschema/CMakeLists.txt index f26eb68f1..7feb48345 100644 --- a/qa/tests/eeschema/CMakeLists.txt +++ b/qa/tests/eeschema/CMakeLists.txt @@ -189,6 +189,7 @@ PRIVATE ${GDI_PLUS_LIBRARIES} Boost::headers Boost::unit_test_framework + atomic ) # Eeschema tests, so pretend to be eeschema (for units, etc) diff --git a/qa/tests/gerbview/CMakeLists.txt b/qa/tests/gerbview/CMakeLists.txt index 517504698..7f338cbff 100644 --- a/qa/tests/gerbview/CMakeLists.txt +++ b/qa/tests/gerbview/CMakeLists.txt @@ -75,6 +75,7 @@ target_link_libraries( qa_gerbview Boost::headers Boost::unit_test_framework ${PCBNEW_EXTRA_LIBS} # -lrt must follow Boost + atomic ) kicad_add_boost_test( qa_gerbview qa_gerbview ) diff --git a/qa/tests/pcbnew/CMakeLists.txt b/qa/tests/pcbnew/CMakeLists.txt index 9c20c67a6..b11cfad0e 100644 --- a/qa/tests/pcbnew/CMakeLists.txt +++ b/qa/tests/pcbnew/CMakeLists.txt @@ -217,6 +217,7 @@ target_link_libraries( qa_pcbnew Boost::headers Boost::unit_test_framework ${PCBNEW_EXTRA_LIBS} # -lrt must follow Boost + atomic ) if( WIN32 ) diff --git a/qa/tests/spice/CMakeLists.txt b/qa/tests/spice/CMakeLists.txt index 2dd236313..c6b8cedee 100644 --- a/qa/tests/spice/CMakeLists.txt +++ b/qa/tests/spice/CMakeLists.txt @@ -95,6 +95,7 @@ PRIVATE ${GDI_PLUS_LIBRARIES} Boost::headers Boost::unit_test_framework + atomic ) if( KICAD_SPICE_QA AND MSVC ) diff --git a/qa/tools/pcbnew_tools/CMakeLists.txt b/qa/tools/pcbnew_tools/CMakeLists.txt index 588787ecb..bc7e37868 100644 --- a/qa/tools/pcbnew_tools/CMakeLists.txt +++ b/qa/tools/pcbnew_tools/CMakeLists.txt @@ -67,6 +67,7 @@ target_link_libraries( qa_pcbnew_tools ${PYTHON_LIBRARIES} Boost::headers ${PCBNEW_EXTRA_LIBS} # -lrt must follow Boost + atomic ) kicad_add_utils_executable( qa_pcbnew_tools ) -- 2.30.2